package com.tom.zx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 合同
 *
 * @author lp
 * @since 2022-04-09
 */
@Getter
@Setter
@TableName("contract")
@ApiModel(value = "Contract对象", description = "合同")
public class Contract implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("合同名称")
  @TableField("name")
  private String name;

  @ApiModelProperty("状态")
  @TableField("status")
  private Integer status;

  @ApiModelProperty("签订人")
  @TableField("signatory")
  private Long signatory;

  @ApiModelProperty("文件路径")
  @TableField("papers")
  private String papers;

  @ApiModelProperty("合同的文件名")
  @TableField("papers_name")
  private String papersName;

  @ApiModelProperty("房屋id")
  @TableField("house_id")
  private Long houseId;

  @ApiModelProperty("装修方案id")
  @TableField("decoration_scheme_id")
  private Long decorationSchemeId;
}
